package com.quectel.core.module.forum.dto.mongo;

import com.quectel.core.module.forum.dto.ForumTopicDto;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;

/**
 * @author bob
 * @email bob.yu@quectel.com
 * @date 2023/05/10 11:21
 */
@Data
@Schema
public class ForumTopicCountDto implements Serializable {
    /**
     * id
     */
    @Schema(description = "id")
    private Long id;

    /**
     * 话题Id
     */
    @Schema(description = "话题Id")
    private Long topicId;

    /**
     * 发帖数量
     */
    @Schema(description = "发帖数量")
    private Integer postCount = 0;

    /**
     * 评论数量
     */
    @Schema(description = "评论数量")
    private Integer commentCount = 0;

    /**
     * 点赞数量
     */
    @Schema(description = "点赞数量")
    private Integer likeCount = 0;

    /**
     * 分享数量
     */
    @Schema(description = "分享数量")
    private Integer shareCount = 0;

    /************非数据库字段 start ************/
    @Schema(description = "话题名称")
    private String topicName;
    @Schema(description = "话题")
    private ForumTopicDto forumTopic;
    /************非数据库字段 end   ************/
}
